import java.time.LocalDateTime;
import java.util.Date;
import java.util.Scanner;

public class XunHuan {
    public static void main(String[] args) {

        while (true){
            Scanner sc =new Scanner(System.in);
            String info = sc.next();

            System.out.println(info);
            if (info.equals("n")){
                break;
            }else {

                LocalDateTime now = LocalDateTime.now();
                System.out.println(now + "循环操作中按n退出循环");
            }

        }
    }
}
